names = ['Tom', 'Tracy', 'Sam']
for name in names:
    print(name)

i = 0
while i < len(names):
    print(names[i])
    i = i + 1

# break和continue代码着中止循环和跳过当前循环
